<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>首页</title>
    <script src="./js/vue.min.js"></script>
</head>
<body>
<div id="root">
    <h1>Hello,{{name}}</h1>
</div>

<script type="text/javascript">
    Vue.config.productionTip = false //组织vue启动时生成提示
    new Vue({ //vue实例
        el: '#root', //id选择器
        data:{
            name:'张三'
        }
    })
</script>

</body>
</html>